home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 67 / IOPROG_67A.ISO / soft / Tools / mwsppv4.exe / INSERT SETPROPERTY.SCRIPT < prev    next >
Encoding:
Text File  |  2002-02-05  |  608 b   |  25 lines

  1. !!Script
  2. // Copyright ⌐ 1997-2002 - Modelworks Software
  3.  
  4. // Insert script helper for:
  5.  
  6. /**
  7. @Object: TreeNode 
  8. @Method: setProperty(name, value)~sets the value of the named property 
  9. associated with this node.
  10. @Syntax: treenode.setProperty(name, value)
  11. @Summary: setProperty(name, value)~sets the value of the named property
  12. */
  13.  
  14. function DoCommand()
  15. {
  16.   var editor = getActiveEditor();
  17.   if (editor)
  18.   {
  19.     var selection = editor.getSelection();
  20.     editor.replace("treenode.setProperty(name, value);", selection);
  21.     editor.setActive("Insert treenode.setProperty");
  22.   }
  23. }
  24.  
  25. !!/Script